b=[i**2 for i in range(6)]
c=[(i,j) for j in range(4) for i in range(j)]
d=[ i  for i in range(10) if i not in b ]  #排除列表b中的元素

print(b)
print(c)
print(d)

#python中对平方求和
Sum_Squares=sum(i**2 for i in range(6))
print(Sum_Squares)
#gurobi 中采用quicksum ，效率更高
from gurobipy import *
# obj = quicksum(cost[i,j]*x[i,j] for i,j in arcs)

